package com.xq.shop.vo;

import java.util.List;

public class PageInfo<T> {

	private int pageNum;
	private int pageSize;
	private long total;
	private List<T> page;
	
	public PageInfo(SearchObject search, List<T> list, long total) {
		this.pageNum = search.getPageNum();
		this.pageSize = search.getPageSize();
		this.page = list;
		this.total = total;
	}
	
	public PageInfo(int pageNum, int pageSize, long total, List<T> page){
		this.pageNum = pageNum;
		this.pageSize = pageSize;
		this.total = total;
		this.page = page;
	}
	
	public int getPageNum() {
		return pageNum;
	}
	public void setPageNum(int pageNum) {
		this.pageNum = pageNum;
	}
	public int getPageSize() {
		return pageSize;
	}
	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public long getTotal() {
		return total;
	}

	public void setTotal(long total) {
		this.total = total;
	}

	public List<T> getPage() {
		return page;
	}

	public void setPage(List<T> page) {
		this.page = page;
	}
}
